<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>退款管理</title>
    <#include "/include/resource.html"/>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <#include "/include/header.html"/>
    <!-- Left side column. contains the logo and sidebar -->
    <#include "/include/main-sidebar.html"/>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                退款列表
                <small>退款信息</small>
            </h1>
            <ol class="breadcrumb">
                <li><i class="fa fa-dashboard"></i> 退款列表</li>
                <li class="active">退款信息</li>
            </ol>
        </section>

        <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="box">
                            <div class="box-header with-border">
                                <h3 class="box-title">退款列表</h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                                <form id="tableForm" method="post" class="form-horizontal" action="${base}/admin/reFundOrder/cancel/list">
                                    <div class="form-group">
                                        <div class="row">
                                            <div class="col-md-3">
                                                <label for="inputEmail3" class="col-md-4 control-label">商户订单号：</label>
                                                <div class="col-md-8">
                                                    <input type="text" class="form-control" value="${(out_trade_no)!''}" name="out_trade_no" id="inputEmail3" placeholder="商户订单号">
                                                </div>
                                            </div>
                                            <div class="col-xs-9">
                                                <button type="button" onclick="HF.query('tableForm');" class="btn btn-primary">Query</button>
                                            </div>
                                        </div>
                                    </div>
                                <table class="table table-bordered">
                                    <tr>
                                        <th>SequenceNo</th>
                                        <th>商户订单号</th>
                                        <th>微信订单号</th>
                                        <th>微信退款单号</th>
                                        <th>订单金额</th>
                                        <th>申请退款金额</th>
                                        <th>退款金额</th>
                                        <th>退款Status</th>
                                        <th>申请退款时间</th>
                                        <th>退款完成时间</th>
                                        <th>退款入账账户</th>
                                    </tr>
                                    <#if list??&&list?size gt 0>
                                    <#list list as t>
                                    <tr>
                                        <td>${t_index+1}</td>
                                        <td>${(t.out_trade_no)!""}</td>
                                        <td>${(t.transaction_id)!""}</td>
                                        <td>${(t.refund_id)!""}</td>
                                        <td>${((t.total_fee)!0)/100}</td>
                                        <td>${((t.refund_fee)!0)/100}</td>
                                        <td>${((t.settlement_refund_fee)!0)/100}</td>
                                        <td>${nav.getRefundeOrderStatus((t.refund_status)!"")}</td>
                                        <td>${nav.getDate((t.createTime)!0)}</td>
                                        <td>${nav.getDate_((t.success_time)!"")}</td>
                                        <td>${(t.refund_recv_accout)!""}</td>
                                    </tr>
                                </#list>
                                 <#else>
                                     <td colspan="11" align="center">no record!</td>
                            </#if>
                            </table>
                        </div>
                        <!-- /.box-body -->
                        <@p.pager pageNo=pageNo pageSize=pageSize totalCount=totalCount />
                            </form>
                    </div>
                    <!-- /.box -->
                </div>
    </div>
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>Version</b> 2.4.0
    </div>
    <strong>Copyright &copy; 2014-2016 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights
    reserved.
</footer>
<div class="control-sidebar-bg"></div>
</div>
<#include "/include/js_footer.html"/>
<script type="application/javascript">
    $(function () {

//        $('#reservation').daterangepicker();
//      //  $('#reservation').daterangepicker({autoUpdateInput:false});
//        $('.reservation').daterangepicker({
//
//            startDate:'', endDate:''})
        $.fn.datepicker.defaults.format = "yyyy-mm-dd";
        $('#datepicker').datepicker({
            autoclose: true
        })

        $('#datepicker_').datepicker({
            autoclose: true
        })

    })
</script>
</body>
</html>
